package com.yu.demo.dao.mapper;

import com.yu.demo.dao.entity.User;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface UserMapper extends Mapper<User> {
    /**
     * 获取所有用户
     * @param user
     * @return
     */
    List<User> getUserList(User user);

    /**
     * 获取工号
     * @param code
     * @return
     */
    int getCode (String code);
}